﻿using GalaSoft.MvvmLight;
using System;
using System.Collections.ObjectModel;

namespace DSParaView
{
    public class ViewModelOffset : ViewModelBase
    {
       
        private ObservableCollection<OffsetDataModel> _ListOffset = new ObservableCollection<OffsetDataModel>();
        public ObservableCollection<OffsetDataModel> ListOffset { get { return _ListOffset; } set { Set("ListOffset", ref _ListOffset, value); } }


        private OffsetDataModel _SelectedOffsetData;
        public OffsetDataModel SelectedOffsetData { get => _SelectedOffsetData; set => Set("SelectedOffsetData", ref _SelectedOffsetData, value); }


    } 

    public class OffsetDataModel : ViewModelBase
    {
        private int _AtChan;
        public int AtChan { get => _AtChan; set => Set("AtChan", ref _AtChan, value); }

        private double _OCV;
        public double OCV { get => _OCV; set => Set("OCV", ref _OCV, value); }

        private double _IR;
        public double IR { get => _IR; set => Set("IR", ref _IR, value); }

        private double _Current;
        public double Current { get => _Current; set => Set("Current", ref _Current, value); }


    }
}